package com.liao.ticket.service;

import com.liao.ticket.dao.dos.ViewManager;
import com.liao.ticket.dao.pojo.User;
import com.liao.ticket.vo.Result;
import com.liao.ticket.vo.UserVo;
import com.liao.ticket.vo.params.LoginParams;
import com.liao.ticket.vo.params.UserParams;

public interface UserService {
    User findUserByAccountAndPass(String account, String password);

    User findUserByPhone(String phone);

    void save(User user);

    UserVo userVoSelfInfo();

    Result updateSelfInfo(UserParams userParams);

    Result updateSelfPass(LoginParams loginParams);

    Result deleteSelfAccount(String token);

    Integer updateMileageAndConsumeById(User user);

    User selectById(Long id);

    ViewManager selectManagerByIdAndType(Long id, Integer type);
}
